package com.dyh.quickdemo.trace;

import com.alibaba.fastjson.JSON;
import org.junit.jupiter.api.Test;

/*
@Author=Joey Wheeler
@Date=2021/3/9 15:24
*/
public class Main {

    @Test
    public void test(){
        BaseNode baseNode =
                new BaseNode("DeliveryOrderBiz");

//        baseNode.setClues("call");

        Clue clue1 = new BaseClue("call");
        clue1.addNode(new BaseNode("WmsOrderBiz"));
        baseNode.addClue(clue1);



//        System.out.println(JSON.toJSONString(baseNode));
        System.out.println(PrintUtil.print(baseNode,"call"));
    }
}
